package jay.home.bet.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Order
{

	private String id;

	private String username;

	private Date time;

	private Double amount;

	private Boolean alive;

	private Boolean isDanshi;

	private Boolean settled;

	private List<Item> items;
	
	private String cat;
	
	private Double canWin;
	
	private Double result;
	
	public Order()
	{
		items = new ArrayList<Item>();
	}

	/**
	 * 这个字段是后来加上来的, 不会被映射到数据库中.用来根据order的信息获取预计派彩.
	 * @return
	 */
	public Double getCanWin()
	{
		return canWin;
	}

	/**
	 * 这个字段是后来加上来的, 不会被映射到数据库中.用来根据order的信息获取预计派彩.
	 * @return
	 */
	public void setCanWin(Double canWin)
	{
		this.canWin = canWin;
	}

	public String getCat()
	{
		return cat;
	}

	public void setCat(String cat)
	{
		this.cat = cat;
	}

	public Boolean getAlive()
	{
		return alive;
	}

	public void setAlive(Boolean alive)
	{
		this.alive = alive;
	}

	public Double getAmount()
	{
		return amount;
	}

	public void setAmount(Double amount)
	{
		this.amount = amount;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public Boolean getIsDanshi()
	{
		return isDanshi;
	}

	public void setIsDanshi(Boolean isDanshi)
	{
		this.isDanshi = isDanshi;
	}

	public List<Item> getItems()
	{
		return items;
	}

	public void setItems(List<Item> items)
	{
		this.items = items;
	}

	public Boolean getSettled()
	{
		return settled;
	}

	public void setSettled(Boolean settled)
	{
		this.settled = settled;
	}

	public Date getTime()
	{
		return time;
	}

	public void setTime(Date time)
	{
		this.time = time;
	}

	public String getUsername()
	{
		return username;
	}

	public void setUsername(String username)
	{
		this.username = username;
	}

	public Double getResult()
	{
		return result;
	}

	public void setResult(Double result)
	{
		this.result = result;
	}
}